/*
 * Copyright 2001-2008 Aqris Software AS. All rights reserved.
 * 
 * This program is dual-licensed under both the Common Development
 * and Distribution License ("CDDL") and the GNU General Public
 * License ("GPL"). You may elect to use one or the other of these
 * licenses.
 */
package net.sf.refactorit.source.preview;

import net.sf.refactorit.source.edit.FilesystemEditor;
import net.sf.refactorit.ui.treetable.BinTreeTableNode;

/**
 * @author Kirill Buhhalko
 */


public class EditorNode extends BinTreeTableNode {

  private FilesystemEditor editor;
  private String displayName;
  public EditorNode(FilesystemEditor fse,  String action, String displayName) {
    super(action);
    this.displayName = displayName;
    editor = fse;
  }

  public FilesystemEditor getEditor() {
    return this.editor;
  }

  public String getLineSource() {
    return displayName;
  }

}
